<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Thread>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% if (!Model.ForumReference.IsLoaded) Model.ForumReference.Load();    %>
    <% using (Html.BeginForm())
       { %>
    <%:Html.AntiForgeryToken() %>
    <div style="margin-bottom: 5px; height: 30px;">
        <% if (!Model.ForumReference.IsLoaded) Model.ForumReference.Load(); %>
        <%:Ajax.ForumMapPath(Model.Forum.ID) %>
    </div>
    <% Html.RenderPartial("Detail", Model.ThreadPost); %>
    <div class="ui-corner-top ui-widget-content" style="margin-right: 5px;">
        <div class="ui-widget-header ui-corner-top ui-border-bottom" style="overflow: auto;">
            <h3 style="margin-left: 10px;">
                <%=Html.Global("forums", "Move")%><%=Html.Global("forums", "Thread")%>:<%=Model.Title%></h3>
        </div>
        <div style="margin: 10px; padding: 10px;">
            <%=Html.Hidden("ForumID")%>
            <%:Ajax.ForumTree("AllForumsTree", new TreeViewOptions()
{
    DisableNodeLinks=true,
            OnNodeSelected = "if (node.element.attr(\"isgroup\")=='True') $('#MoveForumButton').css({'display':'none'});  else { $('#ForumID').val(node.element.attr('key')); $('#MoveForumButton').css({'display':'block'});}" 
}) %>
        </div>
        <div id="MoveForumButton" style="padding: 5px; text-align: center; display: none;">
            <%=Ajax.Submit(Html.Global("RES_SAVE"), "ui-icon ui-icon-disk")%>
        </div>
    </div>
    <%} %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
